//
//  CameramanTimeCell.m
//  XDBaseFrameWork
//
//  Created by XD-XY on 10/13/14.
//  Copyright (c) 2014 XD-XY. All rights reserved.
//

#import "CameramanTimeCell.h"

@implementation CameramanTimeCell

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
        [self makeViews];
    }
    return self;
}

-(void)makeViews
{
    self.contentLB = [UILabel initLabelText:@"12" andRect:CGRectMake(0, 0, 45, 14) andBackGroudColor:mClearColor andTextFont:[UIFont systemFontOfSize:14] andTextColor:UIColorFromRGB(0x453d35) andTextAlignment:NSTextAlignmentCenter];
    
    self.bgView = [UIView initViewRect:CGRectMake(0.5, 37/2.0f,43.5, 81/2.0f) andBackGroudColor:UIColorFromRGB(0x6ccb28)];
    
    self.enableLB = [UILabel initLabelText:@"可用时间" andRect:CGRectMake(0, 0,44, 43/2.0f) andBackGroudColor:mClearColor andTextFont:[UIFont systemFontOfSize:10] andTextColor:[UIColor whiteColor] andTextAlignment:NSTextAlignmentCenter];
    [_bgView addSubview:_enableLB];
    
    self.timeLB = [UILabel initLabelText:@"上午" andRect:CGRectMake(0, (81-34)/2.0f-2,44, 17) andBackGroudColor:mClearColor andTextFont:[UIFont systemFontOfSize:14] andTextColor:[UIColor whiteColor] andTextAlignment:NSTextAlignmentCenter];
    [_bgView addSubview:_timeLB];
    
    self.disEnableLB = [UILabel initLabelText:@"已约满" andRect:_bgView.frame andBackGroudColor:mClearColor andTextFont:[UIFont systemFontOfSize:13.5] andTextColor:UIColorFromRGB(0xb6b6b6) andTextAlignment:NSTextAlignmentCenter];
    
    [self.contentView addSubview:_contentLB];
    [self.contentView addSubview:_bgView];
    [self.contentView addSubview:_disEnableLB];
    
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
